package com.woniuxy.exception;

/**
 * @author zoulaoshi
 * @description:
 * @title: BusinessException
 * @projectName take_out_cashback
 * @date 2022/8/16
 */
public class BusinessException extends Exception{

    private int errCode;

    private String errMsg;

    public BusinessException(String message, String errMsg) {
        super(message);
        this.errMsg = errMsg;
    }

    public BusinessException(String message, int errCode, String errMsg) {
        super(message);
        this.errCode = errCode;
        this.errMsg = errMsg;
    }

    public int getErrCode() {
        return errCode;
    }

    public void setErrCode(int errCode) {
        this.errCode = errCode;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }
}
